package com.job.Gai_Yian.Homework0705;

/**
 * @author Gai_Yian
 * @version 1.0
 * @since 2022-07-07 00:44:47
 */
public class Triple {
    public static void main (String[] args){
        int s=4;
        int t=8;
        int n=9;
        int [][] arr=new int[n][n];
        for (int col=n-1;col>=0;col--){
            for (int row=0;row<=col;row++){
                arr[row][col]=s;
                s++;
                s=s==t?1:s;
            }
        }
        for (int col=0;col<n;col++){
            for (int row=0;row<n;row++){
                if (row<col){
                    System.out.print("\t");
                }
                else{
                    System.out.print(arr[col][row]+"\t");
                }
            }
            System.out.println("");
        }
    }

}
